<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Modeling</title>
<?php echo importCSS("template.css|style.css|person.css|person-view.css|font.css");?>
<?php echo importJS("jquery.min.js");?>
</head>
<body>
<?php echo L('LANG_FONT');?>
<script> var THEME_ROOT = '__ROOT__/themes/' ; </script>
<div class="header clearfix">
	<div class="center">
    	<a href="<?php echo U('/index');?>"><div class="logo">
        	<img src="__ROOT__/themes/images/logo.png" />
        </div></a>
        <div class="menu">
        	<a href="<?php echo U('/work/index');?>" <?php echo ($nav_menu=="work"?" class='now'":"");?>><div><?php echo L('HEADER_WORK');?></div></a> <!-- class="now"-->
            <a href="<?php echo U('/contractor/index');?>" <?php echo ($nav_menu=="contractor"?" class='now'":"");?>><div><?php echo L('HEADER_CONTRACTOR');?></div></a>
            <a href="<?php echo U('/space/index');?>" <?php echo ($nav_menu=="space"?" class='now'":"");?>><div><?php echo L('HEADER_MY_SPACE');?></div></a>
        </div>
        <div class="search">
        	<div><img src="__ROOT__/themes/images/search.png" /></div>
        	<form method="get" action="<?php echo U('/work/index');?>" >
            <input type="text" id="search" name="name" value="<?php echo L('HEADER_SEARCH');?>" onfocus="if(value=='<?php echo L('HEADER_SEARCH');?>') {value=''} setStyleOne(this.id)" onblur="if (value=='') { value='<?php echo L('HEADER_SEARCH');?>' } setStyleTwo(this.id)"/>
            </form>
        </div>
        <?php if ($_cUser) { ?>
        <div class="signafter">
        	<a href="<?php echo U('/signout');?>"><div  class="outbutton"><?php echo L('HEADER_SIGN_OUT');?></div></a>
        	<a href="<?php echo U('/space/index');?>"><div class="word"><?php echo ($_cUser["username"]); ?></div></a>
        </div>
        <?php } else { ?>
        <div class="sign">
        	<a href="<?php echo U('/join');?>"><div><?php echo L('HEADER_JOIN');?></div></a>
            <a href="<?php echo U('/signin');?>"><div><?php echo L('HEADER_SIGN_IN');?></div></a>
        </div>
        <?php } ?>
    </div>
</div>
<div class="clear"></div>

<div class="main center clearfix">
	<div class="leftbox">
    			<div class="inforbox">
            <div class="pic"><img src="<?php echo getAvatar($_cUser);?>" width=100/></div>
            <div class="left">
            	<div class="name"><?php echo ($_cUser["username"]); ?></div>
                <div class="clear"></div>
                <?php if(($_cUser["isverify"]) == "4"): ?><div class="aut">
                	<img src="__ROOT__/themes/images/vendor-acc.png" style="float:left;"/>
                    <div class="left"><?php echo h(xserialize($_cUser['verifyinfo'],'realname'));?></div>
                </div><?php endif; ?>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
        		<div class="menubox">
        	<div class="titleno"><?php echo L('PERSON_PROJECTS');?></div>
            <a href="<?php echo U('/space/publish');?>"><div class="tab"><?php echo L('PERSON_PUBLISH_A_PROJECT');?></div></a>
            <div class="clear"></div>
            <a href="<?php echo U('/space/view');?>"><div class="tab"><?php echo L('PERSON_MY_PROJECTS');?></div></a>
            <div class="clear"></div>
            <a href="<?php echo U('/space/bid');?>"><div class="tab"><?php echo L('PERSON_BIDDING_PROJECTS');?></div></a>
            <div class="clear"></div>
            
            <div class="title"><?php echo L('PERSON_USER_SERVICE');?></div>
            <a href="<?php echo U('/space/profile');?>"><div class="tab"><?php echo L('PERSON_MY_PROFILE');?></div></a>
            <div class="clear"></div>
            <a href="<?php echo U('/space/case');?>"><div class="tab"><?php echo L('PERSON_MY_CASES');?></div></a>
            <div class="clear"></div>
            <a href="<?php echo U('/space/favorite');?>"><div class="tab"><?php echo L('PERSON_MY_CONCERNS');?></div></a>
            <div class="clear"></div>
            <a href="<?php echo U('/space/cer');?>"><div class="tab"><?php echo L('PERSON_REAL_CERTIFICATION');?></div></a>
            <div class="clear"></div>
            <a href="<?php echo U('/space/password');?>"><div class="tab"><?php echo L('PERSON_CHANGE_PASSWORD');?></div></a>
            <div class="clear"></div>
            
            <div class="title"><?php echo L('PERSON_MY_ACCOUNTS');?></div>
            <a href="<?php echo U('/space/account');?>"><div class="tab"><?php echo L('PERSON_ACCOUNT_INFO');?></div></a>
            <div class="clear"></div>
            <a href="<?php echo U('/space/trade');?>"><div class="tab"><?php echo L('PERSON_TRADE_INFO');?></div></a>
            <div class="clear"></div>
            
            
            <div class="title"><?php echo L('PERSON_TOOLS');?></div>
            <a href="#"><div class="tab"><?php echo L('PERSON_VIRTUAL_STUDIO');?></div></a>
            <div class="clear"></div>
            <a href="#"><div class="tab"><?php echo L('PERSON_REMOTE_RENDERRING');?></div></a>
            <div class="clear"></div>
        </div>
	</div>
    
    <div class="rightbox">
    	<div class="buttons">
    		<a href="<?php echo U('/space/view');?>"><div class="button now"><?php echo L('WORK_WORKING');?></div></a>
        	<a href="<?php echo U('/space/view-bid');?>"><div class="button"><?php echo L('WORK_BIDDING');?></div></a>
            <a href="<?php echo U('/space/view-close');?>"><div class="button"><?php echo L('WORK_CLOSED');?></div></a>
        </div>
        <div class="clear"></div>
    	<div class="headline">
    		<div class="name line"><?php echo L('PERSON_PROJECT_NAME');?></div>
        	<div class="country line"><?php echo L('CONTRACTOR_WORKER');?></div>
        	<div class="date line"><?php echo L('PERSON_EXPIRATION_TIME');?></div>
        	<div class="bud line"><?php echo L('CONTRACTOR_BUDGET');?></div>
    	</div>
        <div class="clear"></div>
        <table class="list">
        	<?php if(is_array($_list)): $i = 0; $__LIST__ = $_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="oneproject">
    			<td class="opname"><?php echo ($vo["name"]); ?></td>
                <td class="opcountry"><?php echo getWorker($vo['id'],$vo['status']);?></td>
        		<td class="opdate"><?php echo date('Y-m-d',$vo['endtime']);?></td>
            	<td class="opbud"><?php echo ($vo["budget"]); ?></td>
            	<td class="opcom">
                	<a href="<?php echo U('/work/view/'.$vo['id']);?>" title="view"><div class="button view"></div></a>
                	<a href="javascript:void(0);" title="confirm"><div class="button check"></div></a>
                </td>
        	</tr>
        	<tr class="score hide">
            	<td></td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            <!--<tr class="oneproject">
    			<td class="opname">A movie charactor</td>
        		<td class="opcountry">Daivd</td>
        		<td class="opdate">2013-05-18</td>
            	<td class="opbud">3500RMB</td>
            	<td class="opcom">
                	<a href="" title="view"><div class="button view"></div></a>
                </td>
        	</tr>-->
            <tr>
        		<td class="page"><?php echo ($_page); ?></td>
        	</tr>
    	</table>
        <div class="clear"></div>
    </div>
    
</div>

<div class="footer">

</div>
<?php echo importJS("input.js|signup.js|project.js");?>
</body>
</html>